﻿using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace Super.Hmi.Converters
{
    /// <summary>
    /// RadioButton isCheked 转换器 适用枚举的多个RadioButton
    /// </summary>
    public class Boolean2VisibilityConverterFalse : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if ((bool)value)
                return Visibility.Collapsed;
            else return Visibility.Visible;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
